Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new error helper function IsInvalid to the invopop client package, which checks if a response error corresponds to an HTTP 422 Unprocessable Entity status. This complements the existing error helper functions for other HTTP status codes like Conflict, NotFound, and Forbidden.
- Adds
IsInvalid()helper function for checking invalid request errors (HTTP 422)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pmenendz
left a comment
There was a problem hiding this comment.
Not sure about this.
The other errors make sense because they are tightly related to the error code. But I am not entirely sure about relating isInvalid to the UnprocessableEntity error.
Agreed. I'd just use the same name ( |
No description provided.